package com.example.service.impl;

import com.example.dao.StudentCourseDao;
import com.example.entity.StudentCourse;
import com.example.service.StudentCourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class StudentCourseServiceImpl implements StudentCourseService {

    @Autowired
    private StudentCourseDao studentCourseDao;

    @Override
    public List<StudentCourse> getGradesByStudentId(Integer studentId) {
        return studentCourseDao.findByStudentId(studentId);
    }
}